package com.hownoon.parquet1;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Partitioner;

import java.util.Random;

public class ParquetPartitioner extends Partitioner<NullWritable, LongWritable> {
    @Override
    public int getPartition(NullWritable nullWritable, LongWritable longWritable, int numPartitions) {
        int number = new Random().nextInt(10);

        return number;
    }
}
